package com.hx.vending.dao;

import com.hx.vending.bean.Menu;
import com.hx.vending.bean.entity.MenuVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019/1/2.
 */
@Repository
public interface MenuMapper {

    int insertMenu(Menu menu);

    int updateByPrimaryKey(Menu menu);

    List<Menu> selectByExample(Menu menu);

    Menu selectByPrimaryKey(Menu menu);

    int deleteByPrimaryKey(Integer menuId);

    int deleteRoleMenuByMenu(Integer menuId);

    List<MenuVO> selectVoByExample(@Param("menuName") String menuName,@Param("menus") Integer[] menus);

    Integer[] selectMenuByRole(@Param("roleList") Integer[] roleList);

    Integer[] selectMenu();
}
